<template>
  <div>
    <a-card :bordered="false">
      <div class="table-page-search-wrapper">
        <a-form layout="inline">
          <a-row :gutter="48" >
            <a-col :md="8" :sm="24">
              <a-form-item label="支付单号">
                <a-input v-model="queryParam.id" placeholder="请输入Banner名称"></a-input>
              </a-form-item>
            </a-col>
            <a-col :md="8" :sm="24">
              <a-form-item label="订单编号">
                <a-input v-model="queryParam.id" placeholder=""></a-input>
              </a-form-item>
            </a-col>
            <a-col :md=" 8 || 24" :sm="24">
              <a-form-item>
                <a-button type="primary" @click="queryTable">查询</a-button>
              </a-form-item>
            </a-col>
            <a-col :md=" 8 || 24" :sm="24">
              <a-form-item label="支付状态">
                <a-input v-model="queryParam.phone" placeholder=""></a-input>
              </a-form-item>
            </a-col>
          </a-row>
        </a-form>
      </div>

      <a-table :columns="columns" :dataSource="datas" :pagination="false">
        <a slot="name" slot-scope="text" href="javascript:">{{ text }}</a>
      </a-table>
      <my-pagination
        :total="pagination.totalCount"
        :pageSize="pagination.pageSize"
        :current="pagination.pageNo"
        @onChange="onChangePage"
        @onShowSizeChange="onShowSizeChangePage"
      ></my-pagination>
    </a-card>
  </div>
</template>

<script>
import MyPagination from '../../../components/Autism/myPagination'
const columns = [
  {
    title: '支付单号',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '订单编号',
    dataIndex: 'thumbnail',
    key: 'thumbnail'
  }, {
    title: '支付状态',
    dataIndex: 'index',
    key: 'index'
  }, {
    title: '支付时间',
    key: 'create_time',
    dataIndex: 'create_time'
  }]
const datas = [
  {
    key: 'my_table',
    name: '12345654321',
    thumbnail: '123456543212',
    index: '支付成功',
    create_time: ' 2019/09/08 10:22:30'
  }
]
export default {
  name: 'ProfileAdvanced',
  components: {
    MyPagination
  },
  data: function () {
    return {
      pagination: {
        pageNo: 1,
        pageSize: 10,
        totalCount: 123
      },
      currentTab: 0,
      queryParam: {},
      columns,
      datas
    }
  },
  methods: {
    queryTable () {
    },
    onChangePage (pageNo, pageSize) {
      this.pagination.pageNo = pageNo
      // 重新请求数据
      console.log('on chang page :', pageNo, pageSize)
    },
    onShowSizeChangePage (pageNo, pageSize) {
      this.pagination.pageSize = pageSize
      // 重新请求数据
      console.log('on show size chang page :', pageNo, pageSize)
    }
  }
}
</script>

<style lang="less" scoped>
</style>
